/* 
装饰器
*/

const doc: ClassDecorator = (target: any) => {
    console.log(target);
    target.prototype.name = '吉吉国王';
}

@doc
class JQR {
    constructor() {

    }
}

const jqr: any = new JQR();

console.log(jqr.name);